package org.mcflier.appuntamento.core.tasks;

public abstract class AbstractTask {
	
	private int delay;
	private boolean threadable;
	
	public AbstractTask(int delay, boolean threadable){
		if(delay<0)
			throw new IllegalArgumentException("Delay must be equal or greater than zero");
		
		this.delay = delay;
		this.threadable = threadable;
	}

	public int getDelay() {
		return delay;
	}

	public boolean isThreadable() {
		return threadable;
	}
}
